﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:AdTech.Snap">

    <local:BrushNameConverter x:Key="BrushConverter"/>
    <local:ValidationErrorsToStringConverter x:Key="ValidationErrorsToStringConverter" />
    <Style x:Key="ErrorStyle" TargetType="{x:Type FrameworkElement}">
        <Style.Triggers>
            <Trigger Property="Validation.HasError" Value="true">
                <Setter Property="ToolTip">
                    <Setter.Value>
                        <MultiBinding Converter="{StaticResource ValidationErrorsToStringConverter}">
                            <Binding RelativeSource="{RelativeSource Self}" Path="(Validation.Errors)"/>
                            <Binding RelativeSource="{RelativeSource Self}" Path="(Validation.Errors).Count"/>
                        </MultiBinding>
                    </Setter.Value>
                </Setter>
            </Trigger>
        </Style.Triggers>
    </Style>
    <LinearGradientBrush x:Key="bgGradBlue" StartPoint="0.5,0" EndPoint="0.5,1">
        <GradientStop Color="#FFFAFCFF" Offset="0" />
        <GradientStop Color="#FFD5E1F0" Offset="0.4" />
    </LinearGradientBrush>
    <DropShadowEffect x:Key="DropShadowGlassEffect" ShadowDepth="0" Color="White" BlurRadius="10" />
    <Style x:Key="DropShadowGlassText" TargetType="{x:Type Label}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Label}">
                    <Grid Effect="{StaticResource DropShadowGlassEffect}">
                        <ContentPresenter Effect="{StaticResource DropShadowGlassEffect}" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="glassAreaStyle" TargetType="{x:Type Border}">
        <Style.Triggers>
            <DataTrigger Binding="{Binding IsAeroGlassEnabled}" Value="True">
                <Setter Property="Background" Value="Transparent" />
                <Setter Property="Padding" Value="0,10,0,0" />
            </DataTrigger>
            <DataTrigger Binding="{Binding IsAeroGlassEnabled}" Value="False">
                <Setter Property="Background" Value="#FFD5E1F0" />
                <Setter Property="Padding" Value="10,0,0,10" />
            </DataTrigger>
        </Style.Triggers>
    </Style>
</ResourceDictionary>